import request from '@/utils/request'

// 查询学习积分记录列表
export function listPoints_record(query) {
  return request({
    url: '/study/points_record/list',
    method: 'get',
    params: query
  })
}

// 查询学习积分记录详细
export function getPoints_record(id) {
  return request({
    url: '/study/points_record/' + id,
    method: 'get'
  })
}

// 新增学习积分记录
export function addPoints_record(data) {
  return request({
    url: '/study/points_record',
    method: 'post',
    data: data
  })
}

// 修改学习积分记录
export function updatePoints_record(data) {
  return request({
    url: '/study/points_record',
    method: 'put',
    data: data
  })
}

// 删除学习积分记录
export function delPoints_record(id) {
  return request({
    url: '/study/points_record/' + id,
    method: 'delete'
  })
}
